package simplevideochat.configuration
{
	
	import simplevideochat.communication.*;
	import simplevideochat.communication.connection.*;
	
	/**
	 * ...
	 * @author Alexey Ustinov
	 */
	public class ConfigurationFactory 
	{
		
		public function ConfigurationFactory() 
		{
		}
		
		public function createConnection(room:IRoom):IConnection
		{
			return new P2PConnection(
				"rtmfp://stratus.adobe.com/",
				"f17dbe76cf416566a02d194c-428585068074",
				room);
		}
		
		public function createRoomManager():IRoomManager
		{
			return new ServerRoomManager("127.0.0.1", 8123);
		}
		
		public function createRoom(roomID:String=""):IRoom
		{
			return new Room(roomID);
		}
		
	}

}